import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class hello {
    public static void main(String[] args) {
        try {
            try {
                Class.forName("com.mysql.jdbc.Driver");

                String url = "jdbc:mysql://127.0.0.1:3306/mybatis?characterEncoding=utf-8";
                Connection connection = DriverManager.getConnection(url,"root","root" );




            } catch (ClassNotFoundException e) {
                throw new RuntimeException(e);

            }
        } catch (SQLException e) {
            throw new RuntimeException(e);
        }
    }
}